home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / src611.exe / SRCUPDAT.BAT < prev    next >
Encoding:
DOS Batch File  |  1994-04-15  |  2.6 KB  |  96 lines

  1. @echo off
  2. @echo ---------------------------------------------
  3. @echo I                                           I
  4. @echo I  This file should update your \SC\SRC     I
  5. @echo I  sub directories to 6.11                  I
  6. @echo I                                           I
  7. @echo I  steps:                                   I
  8. @echo I  cd to \SC                                I
  9. @echo I  Type "srcupdat"                          I
  10. @echo I                                           I
  11. @echo ---------------------------------------------
  12. pause
  13.  
  14. rem test if any of the compiler components is present.
  15. rem if not, display error
  16. if exist .\bin\sccx.exe goto STDChk
  17. if exist .\bin\scppx.exe goto STDChk
  18. if exist .\bin\sccd.dll goto STDChk
  19. if not exist .\bin\scppd.dll goto error
  20.  
  21. :STDChk
  22. rem check if STD version
  23. if not exist .\src\NUL goto STDerror
  24. goto DSIOpatch
  25.  
  26. :DSIOpatch
  27. rem do the DSIO patching
  28. if not exist .\src\dos386\io.asm goto CLpatch
  29. srcpatch .\src\dos386 DSIO-611.rtp /nopathsearch /ignore
  30.  
  31. :CLpatch
  32. rem do the CL patching
  33. if not exist .\src\clib\atoi.asm goto WNpatch
  34. srcpatch .\src\clib cl-611.rtp /nopathsearch /ignore
  35.  
  36. :WNpatch
  37. rem do the WN patching
  38. if not exist .\src\win32\flat\io.c goto :WNRest
  39. srcpatch .\src\win32\flat wn-611.rtp /nopathsearch /ignore
  40.  
  41. :WNRest
  42. rem do the RESTWN patching
  43. if not exist .\src\win32\c.asm goto Cleanup
  44. srcpatch .\src\win32 restwin.rtp /nopathsearch /ignore
  45.  
  46. :Cleanup
  47. rem cleaning up
  48. @echo -------------------------------------------------
  49. @echo This will now delete files related to 
  50. @echo this Library sources patch with the exception of 
  51. @echo SRCUPDAT.TXT detailing the changes made for 
  52. @echo Symantec C++ 6.11 
  53. @echo .
  54. @echo Press Ctrl+C to abort
  55. @echo -------------------------------------------------
  56. pause
  57.  
  58. rem files containing the patches
  59. del DSIO-611.RTP
  60. del CL-611.RTP
  61. del WN-611.RTP
  62. del RESTWIN.RTP
  63.  
  64. rem self-extracting archives
  65. del src611.EXE
  66.  
  67. rem patch utility
  68. del srcPATCH.EXE
  69.  
  70. rem readme-first files
  71. del srcREAD.1ST
  72.  
  73. rem patch instructions
  74. del src611.TXT
  75.  
  76. goto end
  77.  
  78. rem display error if STD version does not exist
  79. :STDerror
  80. @echo ---------------------------------------------------
  81. @echo  You do not have the \SC\SRC subdirectory!
  82. @echo  You probably have the STANDARD version installed!
  83. @echo ---------------------------------------------------
  84. goto end
  85.  
  86. rem display error
  87. :error
  88. @echo -------------------------------------
  89. @echo  You are not in the right directory!
  90. @echo  Change directory to the root of
  91. @echo  your Symantec C++ installation, 
  92. @echo  typically \SC
  93. @echo -------------------------------------
  94.  
  95. :end
  96.